/* iPhone 15 外观样式 */
.iphone-frame {
    width: 375px;
    height: 812px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 
        0 0 0 2px #333,
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 15px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
}

/* 自定义动画 */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.spin-animation {
    animation: spin 1s linear infinite;
}

/* 状态指示器 */
.status-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.status-connected {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-disconnected {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* 录制按钮特效 */
.record-button {
    position: relative;
    overflow: hidden;
}

/* 移除pulse-animation类的应用 */
.record-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.record-button:active::before {
    width: 200px;
    height: 200px;
}

/* 进度条样式 */
.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 车机类型选择按钮样式 */
.screen-type-option {
    transition: all 0.3s ease;
}

.screen-type-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.screen-type-option.active {
    background: #3b82f6 !important;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 滑块样式 */
.slider {
    background: #374151;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .iphone-frame {
        width: 320px;
        height: 693px;
    }
}

/* 深色主题变量 */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* 兼容Firefox */
* {
    scrollbar-width: none;
}

/* 兼容IE */
* {
    -ms-overflow-style: none;
}